
# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         test02
# Description:
# Author:       98745
# Date:         2019/5/11
#-------------------------------------------------------------------------------

import _thread as thead
import random
from time import sleep

def func(a,b):
    print(a,b)
    print()
    sleep(random.randint(1,5))


for i in range(8):
    thead.start_new_thread(func,(i+1,"a"*(i+1)))

input('主线程等待中....')
